 #!/usr/bin/python
# Filename: using_file.py
import re
i=1000
poem=""

f = open('poem.txt', 'w') # open for 'w'riting
while i>0:
    poem=poem+"B"
    i=i-1
f.write(poem) # write text to file
f.close() # close the file
